<T:ViewBase x:Class="WPFExcelReport.TPRRABBON02"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:local="clr-namespace:ReflectionStudio.Components.UserControls;assembly=ReflectionStudio.Core" 
                    xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"     
                    xmlns:me="clr-namespace:WPFExcelReport" 
                    xmlns:ex="clr-namespace:WPFExcelReport.Controls;assembly=ExControls"
                    xmlns:T="clr-namespace:WPFExcelReport;assembly=IntexBL" 
                    xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"  
                    xmlns:Localization="clr-namespace:Localization;assembly=Localization"
                    Background="White"  
                    Loaded="Window_Loaded"
     >
    <T:ViewBase.Resources>
        <ucd:Divideby10  x:Key="d10"/>
        <ucd:BoolToVisibilityConverter  x:Key="bv"/>
        <ucd:Divideby100  x:Key="d100"/>
        <ucd:TIMES100  x:Key="X100"/>
        <ucd:TIMES10  x:Key="X10"/>
        <ucd:Divideby1000  x:Key="d1000"/>
        <ucd:PreisConverter  x:Key="PreisConverter"/>
        <ucd:PNumConverter  x:Key="pnum"/>
        <ucd:TextTrimmingConverter  x:Key="Trim"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>  
    </T:ViewBase.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition Height="1*"></RowDefinition>
        </Grid.RowDefinitions>
        <StackPanel Grid.Row="0">
        <WrapPanel>
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=PRBMANDANT:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwPRRABBON.PRBMANDANT}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=PRBSTDBON:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwPRRABBON.PRBSTDBON}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=PRBKOLL:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwPRRABBON.PRBKOLL}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=PRBART:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwPRRABBON.PRBART}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=PRBBONVON:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwPRRABBON.PRBBONVON}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=PRBBONIN:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwPRRABBON.PRBBONIN}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=PRBBONBIS:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwPRRABBON.PRBBONBIS}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=PRBBONLDAT:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwPRRABBON.PRBBONLDAT}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=PRBBONABRKZ:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwPRRABBON.PRBBONABRKZ}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=PRBBONWE01:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwPRRABBON.PRBBONWE01}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=PRBBONP01:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwPRRABBON.PRBBONP01}" Width="Auto" />
            </Grid> 
        </WrapPanel>
        <WrapPanel Visibility="{Binding IsPRRABBON,Converter={StaticResource ResourceKey=bv}}">
                <ex:TBASE1></ex:TBASE1>
            </WrapPanel>
        </StackPanel>
        <DataGrid  Grid.Row="1"  VerticalAlignment="Top"  
                                   AutoGenerateColumns="False"
                                   EnableRowVirtualization="False"
                                   VerticalScrollBarVisibility="Auto"
                                   HorizontalScrollBarVisibility="Auto"
                                   HeadersVisibility="Column"     
                                   ItemsSource="{Binding vwPRRABBON}"  
                                    IsSynchronizedWithCurrentItem="True"
                                   SelectedItem="{Binding Path=dwPRRABBON, Mode=TwoWay}"
                                   x:Name="dlgVKP"  
                                   RowDetailsVisibilityMode="Visible" Grid.ColumnSpan="2" Margin="0,0.2,0.2,0"
                    >
            <DataGrid.Columns> 
                <DataGridTextColumn x:Name="PRBMANDANT"
                                    Binding="{Binding Path=PRBMANDANT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=PRBMANDANT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="PRBSTDBON"
                                    Binding="{Binding Path=PRBSTDBON, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=PRBSTDBON}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="PRBKOLL"
                                    Binding="{Binding Path=PRBKOLL, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=PRBKOLL}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="PRBART"
                                    Binding="{Binding Path=PRBART, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=PRBART}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="PRBBONVON"
                                    Binding="{Binding Path=PRBBONVON, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=PRBBONVON}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="PRBBONIN"
                                    Binding="{Binding Path=PRBBONIN, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=PRBBONIN}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="PRBBONBIS"
                                    Binding="{Binding Path=PRBBONBIS, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=PRBBONBIS}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="PRBBONLDAT"
                                    Binding="{Binding Path=PRBBONLDAT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=PRBBONLDAT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="PRBBONABRKZ"
                                    Binding="{Binding Path=PRBBONABRKZ, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=PRBBONABRKZ}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="PRBBONWE01"
                                    Binding="{Binding Path=PRBBONWE01, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=PRBBONWE01}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="PRBBONP01"
                                    Binding="{Binding Path=PRBBONP01, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=PRBBONP01}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="PRBBONWE02"
                                    Binding="{Binding Path=PRBBONWE02, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=PRBBONWE02}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="PRBBONP02"
                                    Binding="{Binding Path=PRBBONP02, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=PRBBONP02}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="PRBBONWE03"
                                    Binding="{Binding Path=PRBBONWE03, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=PRBBONWE03}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="PRBBONP03"
                                    Binding="{Binding Path=PRBBONP03, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=PRBBONP03}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="PRBBONWE04"
                                    Binding="{Binding Path=PRBBONWE04, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=PRBBONWE04}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="PRBBONP04"
                                    Binding="{Binding Path=PRBBONP04, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=PRBBONP04}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="PRBBONWE05"
                                    Binding="{Binding Path=PRBBONWE05, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=PRBBONWE05}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="PRBBONP05"
                                    Binding="{Binding Path=PRBBONP05, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=PRBBONP05}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="PRBBONWE06"
                                    Binding="{Binding Path=PRBBONWE06, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=PRBBONWE06}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="PRBBONP06"
                                    Binding="{Binding Path=PRBBONP06, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=PRBBONP06}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="PRBBONWE07"
                                    Binding="{Binding Path=PRBBONWE07, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=PRBBONWE07}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="PRBBONP07"
                                    Binding="{Binding Path=PRBBONP07, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=PRBBONP07}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="PRBBONWE08"
                                    Binding="{Binding Path=PRBBONWE08, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=PRBBONWE08}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="PRBBONP08"
                                    Binding="{Binding Path=PRBBONP08, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=PRBBONP08}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="PRBBONWE09"
                                    Binding="{Binding Path=PRBBONWE09, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=PRBBONWE09}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="PRBBONP09"
                                    Binding="{Binding Path=PRBBONP09, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=PRBBONP09}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="PRBBONWE10"
                                    Binding="{Binding Path=PRBBONWE10, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=PRBBONWE10}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="PRBBONP10"
                                    Binding="{Binding Path=PRBBONP10, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=PRBBONP10}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="PRBGABONP"
                                    Binding="{Binding Path=PRBGABONP, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=PRBGABONP}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="PRBGBABRKZ"
                                    Binding="{Binding Path=PRBGBABRKZ, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=PRBGBABRKZ}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="PRBFIXBONP"
                                    Binding="{Binding Path=PRBFIXBONP, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=PRBFIXBONP}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="PRBFBABRKZ"
                                    Binding="{Binding Path=PRBFBABRKZ, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=PRBFBABRKZ}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="PRBVBONLDAT"
                                    Binding="{Binding Path=PRBVBONLDAT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=PRBVBONLDAT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="PRBVORBONP"
                                    Binding="{Binding Path=PRBVORBONP, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=PRBVORBONP}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="PRBVBABRKZ"
                                    Binding="{Binding Path=PRBVBABRKZ, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=PRBVBABRKZ}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="PRBVORBONV"
                                    Binding="{Binding Path=PRBVORBONV, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=PRBVORBONV}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="PRBAENDZL"
                                    Binding="{Binding Path=PRBAENDZL, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=PRBAENDZL}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="PRBAENDBEN"
                                    Binding="{Binding Path=PRBAENDBEN, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=PRBAENDBEN}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="PRBAENDDAT"
                                    Binding="{Binding Path=PRBAENDDAT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=PRBAENDDAT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="PRBNEUBEN"
                                    Binding="{Binding Path=PRBNEUBEN, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=PRBNEUBEN}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="PRBNEUDAT"
                                    Binding="{Binding Path=PRBNEUDAT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=PRBNEUDAT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="PRBBASIS"
                                    Binding="{Binding Path=PRBBASIS, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=PRBBASIS}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="PRBSPLITT"
                                    Binding="{Binding Path=PRBSPLITT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=PRBSPLITT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="PRBMEEH"
                                    Binding="{Binding Path=PRBMEEH, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=PRBMEEH}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="PRFILLER"
                                    Binding="{Binding Path=PRFILLER, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=PRFILLER}}"
                                    Width="Auto" />
            </DataGrid.Columns>
        </DataGrid  >
    </Grid>
</T:ViewBase> 
 
